package duck;

import humans.QuackCounter;

public class QuackCounterable implements Quackable {

	private Quackable context;
	private QuackCounter counter;
	
	public QuackCounterable(Quackable context) {
		this.context = context;
		counter = QuackCounter.getInstance();
	}
	
	@Override
	public void quack() {
		this.context.quack();
		
		counter.incrementCount();
	}

}
